package com.作业.第八章作业.HomeWork05;

public class mian {
    public static void main(String[] args) {
        Worker p1 = new Worker("张三", 5000);
        p1.printsalary();

        Scientist p2 = new Scientist("李四", 15000, 5000);
        p2.printsalary();

        Teacher p3 = new Teacher("王五", 5000, 30, 50);
        p3.printsalary();
    }
}
